//C10:ep10_22.c: find the max between a and b.
#include <stdio.h>

int max(int x, int y)
{
    int z;
    if(x > y)
    {
        z = x;
    }
    else
    {
        z = y;
    }

    return z;
}

int main(void)
{
    int a,b,c;
    printf("Enter two integers:\n");
    scanf("%d%d", &a,&b);
    c = max(a,b);
    printf("a = %d, b = %d, max = %d\n",a,b,c);

    return 0;
}
